﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Aj.Core;

public partial class join_rfwork : PageBase
{
    protected DataSet workNewsPicDs = null;
    protected DataSet workNewsDs = null;
    protected DataSet activityPicDs = null;

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        try
        {
            workNewsPicDs = CustomQuery.Article_GetArticlePicByCId(4, Utility.WorkNewsPicCid);
            string notinids = "";
            if (workNewsPicDs != null && workNewsPicDs.Tables.Count > 0 && workNewsPicDs.Tables[0].Rows.Count > 0)
            {
                foreach (DataRow dr in workNewsPicDs.Tables[0].Rows)
                {
                    notinids += (notinids.IsNotNullAndEmpty() ? "," : "") + dr["A_Id"].ToString();
                }
            }
            workNewsDs = CustomQuery.Article_GetArticleNewsByCId(4, Utility.WorkNewsPicCid, notinids);

            activityPicDs = CustomQuery.PhotoImg_GetPhotoImgByCid(Utility.ActivityPicCid);
        }
        catch (Exception ex)
        {
            Utility.WriteErrorLog("join_rfwork", ex);
        }
    }
}